package com.shop.cereshop.app.dao.buyer;

import com.shop.cereshop.commons.domain.buyer.CereBuyerWithdrawal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereBuyerWithdrawalDAO {
    int deleteByPrimaryKey(Long withdrawalId);

    int insert(CereBuyerWithdrawal record);

    int insertSelective(CereBuyerWithdrawal record);

    CereBuyerWithdrawal selectByPrimaryKey(Long withdrawalId);

    int updateByPrimaryKeySelective(CereBuyerWithdrawal record);

    int updateByPrimaryKey(CereBuyerWithdrawal record);

    void updateBuyerData(@Param("buyerUserId") Long buyerUserId, @Param("id") Long id);

    List<CereBuyerWithdrawal> selectByBuyerUserId(@Param("buyerUserId") Long buyerUserId);
}